<!--  -->
<template>
    <div>
      <el-button class="mt-1 ml-1" @click="openDialog">OneToMany</el-button>
    </div>
    <OneToMany :isShowDialog="isShowDialog" @closeDialog="closeDialog"></OneToMany>
</template>

<script setup lang="ts">
import {ref} from 'vue'
import OneToMany from '../components/oneToMany.vue'

const isShowDialog = ref(false);

const openDialog = () => {
   isShowDialog.value = true;
};

const closeDialog = (val: any) => {
   isShowDialog.value = val;
};
</script>

<style lang="scss" scoped>

</style>